package com.hetao.jmb2c.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hetao.jmb2c.dto.*;
import com.hetao.jmb2c.entity.Member;
import com.hetao.jmb2c.vo.MemberInfoVO;
import com.hetao.jmb2c.vo.MemberPageVO;

public interface MemberService extends IService<Member> {

    String login(MemberLoginDTO memberLoginDTO);

    MemberInfoVO info();

    void updatePassword(MemberUpdatePasswordDTO memberUpdatePasswordDTO);

    Member register(MemberRegisterDTO memberRegisterDTO);

    void bindPhoneOrEmailOrOpenId(MemberBindAccountDTO memberBindAccountDTO);

    IPage<MemberPageVO> getPage(MemberPageQueryDTO memberPageQueryDTO);

    void enable(Long id);

    void resetPassword(Long id);
}
